import { createRouter,createWebHashHistory } from "vue-router";

export default createRouter({
	history:createWebHashHistory(),
	routes: [
		{
			path: "/login",
			name: "Login",
			component: () => import('../views/login/index.vue'),
      meta:{
        isHideFooter:true
      }
		},
		{
			path: "/home",
			name: "Home",
			component: () => import('../views/home/index.vue'),
		},
		{
			path: "/register",
			name: "Register",
			component: () => import('../views/register/index.vue'),
      meta:{
        isHideFooter:true
      }
		},
		{
			path: "/search",
			name: "Search",
			component: () => import('../views/search/index.vue'),
		},
		{
			path: "/:pathMatch(.*)*",
			redirect:'/home'
		},
	],
});
